package com.cw.auth.domain.convert;

import com.cw.auth.domain.entity.AuthPermissionBO;
import com.cw.auth.infra.basic.entity.AuthPermission;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface AuthPermissionConvert {
    AuthPermissionConvert INSTANCE = Mappers.getMapper(AuthPermissionConvert.class);


    // 通过AuthPermissionBO转化为AuthPermission
    AuthPermission convertBoToEntity(AuthPermissionBO authPermissionBO);

    AuthPermissionBO convertEntityToBo(AuthPermission authPermission);

}
